<?php

/*
    Error template page.
    
        Author:     Alfredo Mungo
        License:    LGPL
        Copyright:  2012
*/

if(!defined('ERROR_CODE'))
    define('ERROR_CODE', 500); // Internal Server Error

if(!defined('ERROR_TITLE'))
    define('ERROR_TITLE', 'Internal Server Error');

?>
<!DOCTYPE html>
<html dir="ltr">
<head>
    <meta charset="UTF-8">
    <title>Error <?=ERROR_CODE?></title>
    <style type="text/css">
        h2:first-of-type {
            margin-left: 20px;
        }
        
        p:first-of-type {
            margin-left: 40px;
            width: 500px;
            align: justify;
            font-size: 0.8em;
        }
        
        footer:last-of-type {
            position: absolute;
            bottom: 24px;
            font-size: 0.7em;
        }
    </style>
</head>
<body>
<h1>Error <?=ERROR_CODE?></h1>
<h2><?=ERROR_TITLE?></h2>
<?php if(defined('ERROR_MESSAGE')): ?>
<p><?=ERROR_MESSAGE?></p>
<?php endif ?>
<footer>
    <b>PHI Framework</b> <?php if(defined('PHI_VERSION')) echo PHI_VERSION; ?>
</footer>
</body>
</html>
